package router

import (
	"zsc-boot/app/system_layer/api"
	"zsc-boot/core/web"
)

var serviceDepartmentApi = api.ServiceDepartmentApi

func InitServiceDepartmentRouterGroup() {
	departmentGroup := web.GetGin().Group("/department")
	{
		departmentGroup.POST("/createDepartment", serviceDepartmentApi.CreateServiceDepartment)   // 创建组织
		departmentGroup.DELETE("/deleteDepartment", serviceDepartmentApi.DeleteServiceDepartment) // 删除组织
		departmentGroup.PUT("/updateDepartment", serviceDepartmentApi.UpdateServiceDepartment)    // 更新组织
	}
	{
		departmentGroup.GET("/getDepartment", serviceDepartmentApi.GetServiceDepartment)         // 获取组织详情
		departmentGroup.GET("/getDepartmentList", serviceDepartmentApi.GetServiceDepartmentList) // 获取组织列表
	}

}
